#!/usr/bin/env python
# -*- coding: utf-8 -*-

from django import template

register = template.Library()

@register.inclusion_tag('tags/station_page_top.html')
def station_page_top(stationqs):
    for obj in stationqs:
        obj.url = '/tool/article_list/{}'.format(obj.id)
    return {"stations": stationqs}

